﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<HelfenHelfen.Web.MVC.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="info">
    <div class="center prefix-3 span-11 suffix-3 last">
       <div class="box">
    <h2>Create a New Account</h2>
    <p>
        Use the form below to create a new account. 
    </p>
    <p>
        Passwords are required to be a minimum of <%= Html.Encode(ViewData["PasswordLength"]) %> characters in length.
    </p>

    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
        <div>
                <div class="row">
                    <%= Html.LabelFor(m => m.UserName) %>
                    <%= Html.TextBoxFor(m => m.UserName) %>
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                <div class="row">
                  <%= Html.LabelFor(m => m.Email) %>
                    <%= Html.TextBoxFor(m => m.Email) %>
                    <%= Html.ValidationMessageFor(m => m.Email) %>
                </div>
                <div class="row">
                    <%= Html.LabelFor(m => m.Password) %>
                    <%= Html.PasswordFor(m => m.Password) %>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                <div class="row">
                    <%= Html.LabelFor(m => m.ConfirmPassword) %>
                    <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </div>
                    <div class="row">
                        <button type="submit" class="nofloat">Register</button>
                    </div>
        </div>
    <% } %>
        </div><!-- .box -->
  </div><!-- .center -->
</div><!-- .info -->
</asp:Content>
